package sipoc.messaging.component;

import org.springframework.integration.annotation.Filter;
import org.springframework.integration.annotation.Payload;
import org.springframework.stereotype.Component;

@Component
public class GenericHbFilter {

	@Filter(inputChannel = "genericFilterChannel", outputChannel = "licenseManagerChannel", discardChannel = "genericManagerChannel")
	public boolean filter(@Payload Integer sequence) {
		return sequence.intValue() == 1;
	}

}
